﻿using System;
using System.Xml.Serialization;

namespace Chess.Common.Network
{
    [Serializable]
    //[XmlRoot(Namespace = "urn:chess")]
    //[XmlInclude(typeof(ErrorPacket))]
    public sealed class NetworkPacket
    {
        public NetworkData Data { get; set; }

        public NetworkPacket() {}

        public NetworkPacket(NetworkData data)
        {
            Data = data;
        }
    }
}
